package com.semac.client.componentes.popups;

import com.google.gwt.core.client.GWT;
import com.google.gwt.uibinder.client.UiBinder;
import com.google.gwt.user.client.ui.PopupPanel;
import com.google.gwt.user.client.ui.Widget;
import com.semac.client.rpc.IsLoadingWidget;

public class BlockingPopupPanel extends PopupPanel implements IsLoadingWidget{

	private static BlockingPopupPanelUiBinder uiBinder = GWT.create(BlockingPopupPanelUiBinder.class);

	interface BlockingPopupPanelUiBinder extends UiBinder<Widget, BlockingPopupPanel> {
	}

	public BlockingPopupPanel() {
		super(false);
		setWidget(uiBinder.createAndBindUi(this));
		this.setModal(true);
		this.setGlassEnabled(true);
	}
	


	@Override
	public void showLoading() {
		this.center();		
	}


	@Override
	public void hideLoading() {
		this.hide();
	}
	
}
